package com.orhon.smartcampus.modules.notice.gqlModel;

import com.orhon.smartcampus.basicComponents.GQLLang;
import com.orhon.smartcampus.modules.base.gqlModel.GQLSchool;
import com.orhon.smartcampus.modules.user.gqlModel.GQLUser;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
public class GQLNotice {

    private Long id;
    private GQLSchool school;
    private GQLLang noticeTitle;
    private GQLLang noticeContent;
    private String sendingTime;
    private Integer createdBy;
    private Integer updatedBy;
    private Date createdAt;
    private Date updatedAt;
    private Date deletedAt;
    // 接受学校
    List<GQLSchool> schools;
//    List<GQLUser> users;

    public GQLNotice() {

    }

    public GQLNotice(Map dbMap){
        this.id = (Long) dbMap.get("id");

    }
}
